<div class="modal fade " id="custExchangeInfoModal"   role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document" style="width: 50%">
        <div class="box box-info">
            <div class="box-header with-border">
                <h3 class="box-title">交换模板配置</h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form class="form-horizontal" id="custExchangeInfoForm">
                <div class="box-body">
                    <div class="form-group">
                        <label for="inputEmail3" class="col-sm-2 control-label">名称</label>
                        <div class="col-sm-7" id="addExchangeInfoModal_name"></div>
                    </div>
                    <div class="form-group">
                        <label for="inputEmail3" class="col-sm-2 control-label">校验脚本</label>
                        <div class="col-sm-7" id="custExchangeInfoModal_beforeContent"></div>
                    </div>
                    <div class="form-group">
                        <label for="inputEmail3" class="col-sm-2 control-label">内容脚本</label>
                        <div class="col-sm-7" id="addExchangeInfoModal_content"></div></pre>
                    </div>
                    <div class="form-group">
                        <label for="inputEmail3" class="col-sm-2 control-label">说明</label>
                        <div class="col-sm-7" id="addExchangeInfoModal_remark"></div>
                    </div>
                </div>
                <!-- /.box-body -->
                <div class="box-footer">

                    <button type="button" class="btn btn-default" data-dismiss="modal" >取消</button>

                    <button type="button" class="btn btn-default pull-right" data-dismiss="modal" >关闭</button>
                </div>
                <!-- /.box-footer -->
            </form>
        </div>
    </div>
</div>
<script>
    function custExchangeInfoModalInit() {
        $("#addExchangeInfoModal_name").empty();
        $("#addExchangeInfoModal_beforeContent").empty();
        $("#addExchangeInfoModal_content").empty();
        $("#addExchangeInfoModal_remark").empty();
    }
    function custExchangeInfoModalSetValue(data) {
        $("#addExchangeInfoModal_name").html(data.name);
        $("#addExchangeInfoModal_beforeContent").html("<pre><xmp>"+data.beforeContent+"</xmp></pre>");
        $("#addExchangeInfoModal_content").html("<pre><xmp>"+data.content+"</xmp>");
        $("#addExchangeInfoModal_remark").html(data.remark);
    }
</script>